package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author :  LENOVO
 * 创建时间 : 2024/6/23 9:20
 */
@Component
@Slf4j
public class TaskDemo {

//    @Scheduled(cron = " 0/5 * * * * ?")
//    public void myTask() {
//        log.info("启动时间：" + LocalDateTime.now());
//    }
}
